<div class="tipbox tipbox-warning">
    1、帐号余额是已减去申请的数量。<br />
    2、未通过的申请将会把申请数量自动返回到账户余额。<br /> 
    3、通过申请,请先确认已执行相关转账流程。
</div>
<form id="form" action="{:url('popupshop/bank/cashpass',['id' => $cash.id])}">
<input type="hidden" name="id" value="{$cash.id}" />
<input type="hidden" name="realmoney" value="{$yescash}" />
<div class="titlebar"><i class="iconfont icon-chuzhijine"></i>帐号余额</div>
<table class="pure-table formtable"> 
    <tr><td class="w100">帐号余额:</td><td class="red"><i class="iconfont icon-renminbi1688"></i>{$bank.due_money|money}</td></tr>
    <tr><td>累计收益:</td><td class="red"><i class="iconfont icon-renminbi1688"></i>{$bank.income_money|money}</td></tr>
    <tr><td>提现锁定:</td><td class="red"><i class="iconfont icon-renminbi1688"></i>{$bank.lack_money|money}</td></tr>
</table>
<div class="titlebar"><i class="iconfont icon-chuzhijine"></i>帐号信息</div>
<table class="pure-table formtable"> 
    <tr><td class="w100">开户行:</td><td>{$bankinfo.bankname}</td></tr>
    <tr><td>银行卡号:</td><td>{$bankinfo.bankid}</td></tr>
    <tr><td>姓名:</td><td>{$bankinfo.name}</td></tr>
    <tr><td>身份证号:</td><td>{$bankinfo.idcard}</td></tr>
    <tr><td>绑定手机:</td><td>{$bankinfo.user.phone_uid}</td></tr>
</table>
<div class="titlebar"><i class="iconfont icon-renminbi1688"></i><span class="fn-fb">结算信息</span></div>
<table class="pure-table"> 
    <tr><td class="w100">申请提现:</td><td class="blue"><i class="iconfont icon-renminbi1688"></i>{$cash.money|money}</td></tr>
    <tr><td>申请日期:</td><td>{$bank->update_time|date='Y-m-d H:i'}</td></tr>
    <tr><td>结算金额:</td><td class="red fn-fb"><i class="iconfont icon-renminbi1688"></i>{$yescash}</td></tr>
    {if $cash.state == 0}
    <tr>
        <td class="w100">是否通过:</td>
        <td>
            {if $bank.lack_money >= $cash.money}<span class="badge bg-green"><input type="radio" name="ispass" value="1" checked> 通过</span>{/if}
            <span class="badge bg-red"><input type="radio" name="ispass" value="0" > 不通过</span> 
        </td>
    </tr>
    <tr><td class="w100">付款模式:</td><td>
        <div class="tipbox tipbox-warning">友情提示：
        {if $config.is_wechat_touser}
            {if empty($bank.user.miniapp_uid) || $cash.money >= 5000}
                <span class="red fn-fb">请人工转账</span><br />
                <span class="gray">
                    1、当前帐号未绑定公众号帐号。<br />
                    2、【付款到零钱】仅支持5000元/天。<br />
                </span>
            {else}
                通过【付款到零钱】结算到当前用户个人微信号,<br />
                <span class="gray">
                    1、清保证您的商户号资金余额充足。<br />
                    2、【付款到零钱】仅支持5000元/天。<br />
                    3、接受付款的微信用户"账户资料"必须和当前申请人微信是一个实名认证用户。
                </span>
            {/if}
        {else}
            <span class="red fn-fb">请人工转账</span>
        {/if}
        </div>
    </td></tr>
    <tr><td></td><td><input type="submit" value="确定当前操作" class="button button-red submit" /></td></tr>
    {else}
    <tr><td class="w100">交易单号:</td><td>{$cash.trade_no}</td></tr>
    <tr><td class="w100">返回日志:</td><td>{$cash.msg}</td></tr>
    <tr><td class="w100">是否通过:</td><td>{if $cash.state == 1}<span class="badge bg-green">提现通过</span>{else}<span class="badge bg-red">不通过</span>{/if}</td></tr>
    {/if}
</table>
</form>
<script type="text/javascript">
Do('base','layer','form',function(){
    $('#form').isForm();
})
</script>
